Free placer when waypt is freed.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 5 May 2005 16:37:31 +0000 (16:37 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 5 May 2005 16:37:31 +0000 (16:37 +0000)
gpsbabel/waypt.c

index f45633a65b1330ba5d53e4d053e6fe5a67bd0bb4..14bbad644f9ac812b0223b6405af16b0d1e88885 100644 (file)
@@ -274,6 +274,9 @@ waypt_free( waypoint *wpt )
        if (wpt->gc_data.desc_long.utfstring) {
                xfree(wpt->gc_data.desc_long.utfstring);
        }
+       if (wpt->gc_data.placer) {
+               xfree(wpt->gc_data.placer);
+       }
        if ( wpt->an1_extras ) {
                (*(wpt->an1_extras->destroy))((void *)wpt->an1_extras );
                xfree( wpt->an1_extras );